import axios from 'axios';
import { getCookie } from '../../tools/util';

export function revoke(obj){
    var params = {...obj, tel: getCookie('u_name')}
    console.log(params);
    return axios.get('/revokeRecycle', {
        params: params
    })
    .then(function(response){

    })
    .catch(function(error){
        console.log(error)
    })
}

export function deletes(obj){
    var params = {...obj, tel: getCookie('u_name')}
    console.log(params);
    return axios.get('/deleteRecycle', {
        params: params
    })
    .then(function(response){

    })
    .catch(function(error){
        console.log(error)
    })
}